DIO#.SOURCE
Description
DIO#.SOURCE sets the digital output source when the digital I/O pin is configured as an output through DIO#.DIR.
Value | Description |
---|---|
0 - User | User controls the output value using DIO#.STATEU |
1 - Action Table | Action table controls the output value |
2 - Fieldbus | Fieldbus controls the output value |
4 - Compare | Compare channel controls the output value |
5 - MechaWare | MechaWare model controls the output value |
6 - PWM Generator | PWM generator controls the output value |
Examples
Usage
0: User controlled. DIO#.STATE is set by DIO#.STATEU.
1: Action table controlled. DIO#.STATE is set by the assigned action, if any.
2: Fieldbus controlled. DIO#.STATE is set by the fieldbus output control 3681h Digital output control sub 1.
4: Compare channel controlled. DIO#.STATE is set by the compare channel output. The specific channel is selected by DIO#.SOURCEID
5: MechaWare controlled: DIO#STATE is set by a MechaWare model.
6: PWM generator controlled: DIO# is used to output a PWM signal configured by PWM#.DUTYCYCLE and PWM#.PERIOD. If multiple PWM generators are available, DIO#.SOURCEID selects the PWM generator to be used.
Code
Changing output state with STATEU and then changing SOURCE to be action table with no action configured:
--> DIO1.DIR 1
--> DIO1.SOURCE 0
--> DIO1.STATE 0
--> DIO1.STATEU 1
--> DIO1.STATE 1
--> DIO2.DIR 1
--> DIO2.SOURCE 1
--> DIO2.STATE 0
Context
For more information see Digital Inputs and Outputs.
Versions
Action | Version | Notes |
---|---|---|
Implemented | 02-00-00-000 | |
Added Compare source | 02-06-00-000 |
General Information
Type | Read/Write |
Units | N/A |
Range | 0, 1, 2, 4, 5, 6 |
Default Value | 0 |
Data Type | Integer |
See Also | |
Stored in Non-Volatile Memory |
Yes |
Variants Supported
All variants are supported
Fieldbus Information
Command |
Index |
SubIndex |
Data Type |
Units |
Float Scale |
Access |
PDO Mappable |
---|---|---|---|---|---|---|---|
DIO1.SOURCE |
368ah |
05h |
Unsigned8 |
- |
- |
Read/Write |
No |
DIO2.SOURCE |
368bh |
05h |
Unsigned8 |
- |
- |
Read/Write |
No |
DIO3.SOURCE |
368ch |
05h |
Unsigned8 |
- |
- |
Read/Write |
No |
DIO4.SOURCE |
368dh |
05h |
Unsigned8 |
- |
- |
Read/Write |
No |
DIO5.SOURCE |
368eh |
05h |
Unsigned8 |
- |
- |
Read/Write |
No |
DIO6.SOURCE |
368fh |
05h |
Unsigned8 |
- |
- |
Read/Write |
No |
ID |
Instance |
Attribute |
Name |
Data Type |
Access |
User Mappable |
---|---|---|---|---|---|---|
22200 |
1 |
22200 (0x56b8) |
DIO1.SOURCE |
Unsigned8 |
Read/Write |
Yes |
22201 |
1 |
22201 (0x56b9) |
DIO2.SOURCE |
Unsigned8 |
Read/Write |
Yes |
22202 |
1 |
22202 (0x56ba) |
DIO3.SOURCE |
Unsigned8 |
Read/Write |
Yes |
22203 |
1 |
22203 (0x56bb) |
DIO4.SOURCE |
Unsigned8 |
Read/Write |
Yes |
22204 |
1 |
22204 (0x56bc) |
DIO5.SOURCE |
Unsigned8 |
Read/Write |
Yes |
22205 |
1 |
22205 (0x56bd) |
DIO6.SOURCE |
Unsigned8 |
Read/Write |
Yes |
Parameter |
PNU |
Data Type |
Access |
Units |
---|---|---|---|---|
DIO1.SOURCE |
22200 |
Unsigned8 |
Read/Write |
- |
DIO2.SOURCE |
22201 |
Unsigned8 |
Read/Write |
- |
DIO3.SOURCE |
22202 |
Unsigned8 |
Read/Write |
- |
DIO4.SOURCE |
22203 |
Unsigned8 |
Read/Write |
- |
DIO5.SOURCE |
22204 |
Unsigned8 |
Read/Write |
- |
DIO6.SOURCE |
22205 |
Unsigned8 |
Read/Write |
- |